# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer:
pkgname=waynergy
pkgver=0.0.10
pkgrel=1
pkgdesc="A synergy client for Wayland compositors"
url="https://github.com/r-c-f/waynergy"
arch="all"
license="MIT"
depends="wl-clipboard"
makedepends="
	libretls-dev
	libxkbcommon-dev
	meson
	wayland-dev
	"
source="https://github.com/r-c-f/waynergy/archive/v$pkgver/waynergy-$pkgver.tar.gz"
options="!check"  # no tests defined

build() {
	abuild-meson . output
	meson compile -j ${JOBS:-0} -C output
}

check() {
	meson test --no-rebuild -v -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
664f17280b5d3da31fd20de99adaffa61cd34dfc058a1d562643e6c5b76a32180daa454f4f4f60536f766101a6961d5a966d15aa846148151a3d6455637ecf56  waynergy-0.0.10.tar.gz
"
